package cn.itcast.erp.dao.mapper;

import cn.itcast.erp.entity.Goods;
import cn.itcast.erp.entity.Supplier;

import java.util.List;

public interface GoodsMapper {

    int insertGoods(Goods goods);

    int deleteGoodsByUuId(Long uuid);

    int updateGoods(Goods goods);

    int count(Goods goods);

    List<Goods> findGoods(Goods goods);

    //查询所有商品(不分页)
    List<Goods> findAllGoods();

    //查询商品By id
    Goods findGoodsById(Long uuid);

    //导出Excel
    List<Goods> getAllGoodsEx();
}
